:root {
  --blue-logo: #143deb;
  --purple-main: #9400d3;
  --navy: #061669;
  --white: #ffffff;
  --bg-clean: #fafafa;
}

/* 1. LAYOUT & HEADER (Sama persis dengan articles.css) */
.gallery-section { padding: 100px 0; }
.gallery-header { text-align: center; margin-bottom: 60px; }

.category-tag {
  background: rgba(148, 0, 211, 0.1);
  color: var(--purple-main);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--navy);
  margin: 20px 0;
}

.purple-text { color: var(--purple-main); }
.subtitle { color: #64748b; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    
    /* Perbaikan Jarak */
    margin-top: 40px;    /* Memberi jarak 40px dari Subjudul */
    margin-bottom: 60px; /* Jarak ke bawah menuju Grid Kartu */
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--blue-logo);
    color: var(--blue-logo);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--blue-logo);
    border-color: var(--blue-logo);
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(20, 61, 235, 0.25);
}

/* 1. Layout Grid - Memastikan 3 kolom berjajar ke kanan */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Paksa 3 kolom */
    gap: 30px;
    margin-top: 40px;
    padding: 0 15px; /* Memberi ruang agar tidak menempel ke tepi layar */
}

/* 2. Card Styling - Membuat tampilan lebih kotak dan elegan */
.card-box {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* 3. Poster Area - Diubah menjadi Rasio Instagram 4:5 */
.poster-area {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Ini akan membuat foto berukuran 4:5 */
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder warna jika gambar loading */
}

.poster-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Menjaga gambar agar tidak gepeng/distorsi */
    transition: transform 0.6s ease;
}

/* Tambahan: Pastikan kartu tidak terlalu lebar agar rasio 4:5 tetap terlihat cantik */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* Sedikit dirapatkan agar proporsional */
    margin-top: 40px;
}

/* 4. Konten Area - Memastikan tombol selalu di bawah */
.content-area {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-area h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--navy);
    line-height: 1.4;
    margin: 5px 0;
}

.content-area p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 5. Tombol Aksi */
.btn-action {
    margin-top: auto; /* Mendorong tombol ke posisi paling bawah */
    padding: 12px;
    background: var(--purple-main);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-action:hover {
    background: var(--blue-logo);
}

/* 6. Badge Status */
.badge-category {
    position: absolute;
    top: 15px;
    left: 15px; /* Sesuai referensi gambar di pojok kiri atas */
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Responsive Tablet & Mobile */
@media (max-width: 992px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .article-grid { grid-template-columns: 1fr; }
}


/* --- ADKESMAH SECTION (MODERN & CLEAN) --- */

/* 1. Main Container */
.adkesmah-container {
    background: var(--white);
    padding: 60px 40px;
    margin: 60px auto;
    max-width: 1000px;
    border-radius: 32px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
}

/* 2. Header & Branding */
.adkesmah-logo-float {
    width: 80px;
    margin-bottom: 20px;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.section-title-alt { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); }
.section-intro-p { color: #64748b; max-width: 500px; margin: 10px auto 40px auto; line-height: 1.6; }

/* 3. Grid & Cards (Efektif & Responsif) */
.square-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 2. Card (Shadow lebih menonjol dan halus) */
.service-card-sq {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    border-radius: 20px;
    background: #f3f2f5;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    
    /* Shadow dasar dipertebal */
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.service-card-sq:hover {
    background: #ffffff;
    border-color: var(--purple-main);
    box-shadow: 0 20px 40px rgba(148, 0, 211, 0.15);
    transform: translateY(-8px);
}

.sq-icon {
    width: 60px; height: 60px;
    background: #fff; color: var(--purple-main);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 15px;
    /* Shadow ikon diperjelas */
    box-shadow: 0 8px 15px rgba(148, 0, 211, 0.15);
}

.service-card-sq h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--navy); }
.service-card-sq p { 
    font-size: 0.75rem; color: #64748b; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}

/* 4. Responsive */
@media (max-width: 992px) { .square-service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .square-service-grid { grid-template-columns: 1fr; } }


/* hotline badge */
/* ================= HOTLINE HORIZONTAL PREMIUM ================= */
.hotline-action-area {
    margin: 40px auto 60px;
    max-width: 850px;
    padding: 0 20px;
}

.hotline-premium-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(6, 22, 105, 0.08);
    border: 1px solid rgba(148, 0, 211, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.hotline-premium-bar:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(148, 0, 211, 0.12);
}

/* Bagian Kiri */
.hotline-left-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline-icon-circle {
    width: 55px;
    height: 55px;
    background: rgba(148, 0, 211, 0.1);
    color: var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.hotline-text-group h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.hotline-text-group p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Bagian Kanan */
.hotline-right-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-online {
    width: 10px;
    height: 10px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25d366;
    animation: pulseStatus 2s infinite;
}

.text-online {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1eb954;
    text-transform: uppercase;
}

.hotline-btn-action {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(6, 22, 105, 0.2);
}

.hotline-btn-action:hover {
    background: var(--purple-main);
    transform: translateY(-2px);
}

/* Animasi */
@keyframes pulseStatus {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .hotline-premium-bar {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .hotline-left-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .hotline-right-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hotline-btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* --- SECTION BERITA DI DALAM BOX --- */

.news-section-inner {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.news-main-title.serif-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 800;
}

.news-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================= NEWS SIMPLE LIST (4:5 Ratio) ================= */

.news-simple-card {
  display: flex;
  align-items: stretch; /* Ubah ke stretch agar konten teks menyesuaikan tinggi gambar */
  background: #ffffff;
  padding: 20px; /* Padding lebih lega */
  border-radius: 16px;
  text-decoration: none;
  
  /* Memberikan dimensi menonjol yang kuat */
  border: 1px solid rgba(6, 22, 105, 0.08);
  box-shadow: 0 8px 25px rgba(6, 22, 105, 0.07); /* Bayangan default lebih tegas */
  
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.news-simple-card:hover {
  background: #ffffff;
  border-color: var(--purple-main);
  
  /* Efek menonjol maksimal (terangkat & bayangan dalam) saat hover */
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(6, 22, 105, 0.15); /* Bayangan dalam & menyebar */
}

/* Update Ukuran Gambar ke Rasio 4:5 */
.news-img-side {
  width: 120px; /* Lebar dikunci */
  height: 150px; /* Tinggi diset 150px untuk mencapai rasio 4:5 (120/150 = 4/5) */
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  
  /* Memberikan sedikit kedalaman pada gambar itu sendiri */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
}

.news-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pastikan gambar memotong potret dengan rapi tanpa gepeng */
}

/* Konten Teks */
.news-info-side {
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Tengah secara vertikal */
    align-items: center;     /* Tengah secara horizontal */
    text-align: center;      /* Memastikan teks judul dan p rata tengah */
    flex-grow: 1;
}

.news-info-side h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin: 0 0 5px 0;
    font-weight: 700;
    line-height: 1.2;
}

.news-date-simple {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.news-info-side p {
    font-size: 0.95rem;
    color: #444;
    margin: 0 0 15px 0; /* Jarak bawah sedikit diperlebar */
    line-height: 1.4;
}

.news-link-simple {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(6, 22, 105, 0.03); /* Background tipis agar lebih menonjol di tengah */
    transition: all 0.3s ease;
}

.news-simple-card:hover .news-link-simple {
    color: white;
    background: var(--purple-main); /* Berubah jadi ungu solid saat hover */
    transform: scale(1.05);
}

/* Responsif Mobile */
@media (max-width: 600px) {
  .news-simple-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-info-side {
    padding-left: 0;
    padding-top: 15px;
  }
  .news-img-side {
    width: 100%;
    height: 180px;
  }
}